package com.ruoyi.ams.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.ams.domain.AmsOwnUserAssetAuthority;
import com.ruoyi.ams.domain.vo.ApplyHistoryInifo;
import com.ruoyi.ams.domain.vo.ApplyUnlockAuthVo;

import java.util.List;

/**
 * 物联网资产设备用户权限信息Service接口
 * 
 * @author yfkj
 * @date 2021-10-15
 */
public interface IAmsOwnUserAssetAuthorityService  extends IService<AmsOwnUserAssetAuthority>
{
    /**
     * 查询物联网资产设备用户权限信息
     * 
     * @param ownUserAssetAuthorityId 物联网资产设备用户权限信息主键
     * @return 物联网资产设备用户权限信息
     */
    public AmsOwnUserAssetAuthority selectAmsOwnUserAssetAuthorityByOwnUserAssetAuthorityId(Long ownUserAssetAuthorityId);

    /**
     * 查询物联网资产设备用户权限信息列表
     * 
     * @param amsOwnUserAssetAuthority 物联网资产设备用户权限信息
     * @return 物联网资产设备用户权限信息集合
     */
    public List<AmsOwnUserAssetAuthority> selectAmsOwnUserAssetAuthorityList(AmsOwnUserAssetAuthority amsOwnUserAssetAuthority);

    /**
     * 新增物联网资产设备用户权限信息
     * 
     * @param amsOwnUserAssetAuthority 物联网资产设备用户权限信息
     * @return 结果
     */
    public int insertAmsOwnUserAssetAuthority(AmsOwnUserAssetAuthority amsOwnUserAssetAuthority);

    /**
     * 修改物联网资产设备用户权限信息
     * 
     * @param amsOwnUserAssetAuthority 物联网资产设备用户权限信息
     * @return 结果
     */
    public int updateAmsOwnUserAssetAuthority(AmsOwnUserAssetAuthority amsOwnUserAssetAuthority);

    /**
     * 批量删除物联网资产设备用户权限信息
     * 
     * @param ownUserAssetAuthorityIds 需要删除的物联网资产设备用户权限信息主键集合
     * @return 结果
     */
    public int deleteAmsOwnUserAssetAuthorityByOwnUserAssetAuthorityIds(Long[] ownUserAssetAuthorityIds);

    /**
     * 删除物联网资产设备用户权限信息信息
     * 
     * @param ownUserAssetAuthorityId 物联网资产设备用户权限信息主键
     * @return 结果
     */
    public int deleteAmsOwnUserAssetAuthorityByOwnUserAssetAuthorityId(Long ownUserAssetAuthorityId);

    List<ApplyUnlockAuthVo> getApplyInfoByGrantId(Long grantUserId);

    List<ApplyHistoryInifo> getApplyHistoryInfos(Long userId);

    List<ApplyUnlockAuthVo> getApplyInfoByDeptId(Long deptId, Integer status);
}
